myhead = {
    props: ["checkall"],
    template: "#myhead",
    methods: {
        setcheckall() {
            let flag = window.event.target.checked;
            this.$emit("setcheckall", flag);
        }
    }
}

mylist = {
    props: ["list"],
    template: "#mylist",
    methods: {
        calc(item, n) {
            item.goodsnum = item.goodsnum + n;
        },
        del(id) {
            this.$emit("dellist", id);
        }
    }
}

myfooter = {
    props: ["totalprice", "totalnum"],
    template: "#myfooter",
    methods: {
        delall() {
            this.$emit("delall");
        }
    }

}